3.397 \(\int x (a+b \log (c (d+e x)^n))^3 (f+g \log (h (i+j x)^m)) \, dx\)

Optimal. Leaf size=2050 \[ \text{result too large to display} \]

[Out]

(-6*a*b^2*d*f*n^2*x)/e + (12*a*b^2*d*g*m*n^2*x)/e + (21*a*b^2*g*i*m*n^2*x)/(4*j) + (6*b^3*d*f*n^3*x)/e - (141*
b^3*d*g*m*n^3*x)/(8*e) - (45*b^3*g*i*m*n^3*x)/(8*j) + (3*b^3*g*m*n^3*x^2)/8 - (3*b^3*f*n^3*(d + e*x)^2)/(8*e^2
) + (3*b^3*g*m*n^3*(d + e*x)^2)/(8*e^2) + (3*b^3*d^2*g*m*n^3*Log[d + e*x])/(8*e^2) - (6*b^3*d*f*n^2*(d + e*x)*
Log[c*(d + e*x)^n])/e^2 + (12*b^3*d*g*m*n^2*(d + e*x)*Log[c*(d + e*x)^n])/e^2 + (21*b^3*g*i*m*n^2*(d + e*x)*Lo
g[c*(d + e*x)^n])/(4*e*j) - (3*b^2*g*m*n^2*x^2*(a + b*Log[c*(d + e*x)^n]))/8 + (3*b^2*f*n^2*(d + e*x)^2*(a + b
*Log[c*(d + e*x)^n]))/(4*e^2) - (3*b^2*g*m*n^2*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n]))/(4*e^2) + (3*b*d*f*n*(d
 + e*x)*(a + b*Log[c*(d + e*x)^n])^2)/e^2 - (15*b*d*g*m*n*(d + e*x)*(a + b*Log[c*(d + e*x)^n])^2)/(4*e^2) - (9
*b*g*i*m*n*(d + e*x)*(a + b*Log[c*(d + e*x)^n])^2)/(4*e*j) - (3*b*f*n*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n])^2
)/(4*e^2) + (3*b*g*m*n*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n])^2)/(4*e^2) - (d^2*f*(a + b*Log[c*(d + e*x)^n])^3
)/(2*e^2) + (d*g*m*(d + e*x)*(a + b*Log[c*(d + e*x)^n])^3)/(2*e^2) + (g*i*m*(d + e*x)*(a + b*Log[c*(d + e*x)^n
])^3)/(2*e*j) - (g*m*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n])^3)/(4*e^2) + (3*b^3*g*i^2*m*n^3*Log[i + j*x])/(8*j
^2) - (3*b^2*g*i^2*m*n^2*(a + b*Log[c*(d + e*x)^n])*Log[(e*(i + j*x))/(e*i - d*j)])/(4*j^2) - (9*b^2*d*g*i*m*n
^2*(a + b*Log[c*(d + e*x)^n])*Log[(e*(i + j*x))/(e*i - d*j)])/(2*e*j) - (9*b*d^2*g*m*n*(a + b*Log[c*(d + e*x)^
n])^2*Log[(e*(i + j*x))/(e*i - d*j)])/(4*e^2) + (3*b*g*i^2*m*n*(a + b*Log[c*(d + e*x)^n])^2*Log[(e*(i + j*x))/
(e*i - d*j)])/(4*j^2) + (3*b*d*g*i*m*n*(a + b*Log[c*(d + e*x)^n])^2*Log[(e*(i + j*x))/(e*i - d*j)])/(2*e*j) +
(d^2*g*m*(a + b*Log[c*(d + e*x)^n])^3*Log[(e*(i + j*x))/(e*i - d*j)])/(2*e^2) - (g*i^2*m*(a + b*Log[c*(d + e*x
)^n])^3*Log[(e*(i + j*x))/(e*i - d*j)])/(2*j^2) - (3*b^3*g*n^3*x^2*Log[h*(i + j*x)^m])/8 + (21*b^3*d*g*n^3*(i
+ j*x)*Log[h*(i + j*x)^m])/(4*e*j) - (21*b^3*d^2*g*n^3*Log[-((j*(d + e*x))/(e*i - d*j))]*Log[h*(i + j*x)^m])/(
4*e^2) - (9*b^2*d*g*n^2*x*(a + b*Log[c*(d + e*x)^n])*Log[h*(i + j*x)^m])/(2*e) + (3*b^2*g*n^2*x^2*(a + b*Log[c
*(d + e*x)^n])*Log[h*(i + j*x)^m])/4 + (9*b*d^2*g*n*(a + b*Log[c*(d + e*x)^n])^2*Log[h*(i + j*x)^m])/(4*e^2) +
 (3*b*d*g*n*x*(a + b*Log[c*(d + e*x)^n])^2*Log[h*(i + j*x)^m])/(2*e) - (3*b*g*n*x^2*(a + b*Log[c*(d + e*x)^n])
^2*Log[h*(i + j*x)^m])/4 - (d^2*g*(a + b*Log[c*(d + e*x)^n])^3*Log[h*(i + j*x)^m])/(2*e^2) + (x^2*(a + b*Log[c
*(d + e*x)^n])^3*(f + g*Log[h*(i + j*x)^m]))/2 - (3*b^3*g*i^2*m*n^3*PolyLog[2, -((j*(d + e*x))/(e*i - d*j))])/
(4*j^2) - (9*b^3*d*g*i*m*n^3*PolyLog[2, -((j*(d + e*x))/(e*i - d*j))])/(2*e*j) - (9*b^2*d^2*g*m*n^2*(a + b*Log
[c*(d + e*x)^n])*PolyLog[2, -((j*(d + e*x))/(e*i - d*j))])/(2*e^2) + (3*b^2*g*i^2*m*n^2*(a + b*Log[c*(d + e*x)
^n])*PolyLog[2, -((j*(d + e*x))/(e*i - d*j))])/(2*j^2) + (3*b^2*d*g*i*m*n^2*(a + b*Log[c*(d + e*x)^n])*PolyLog
[2, -((j*(d + e*x))/(e*i - d*j))])/(e*j) + (3*b*d^2*g*m*n*(a + b*Log[c*(d + e*x)^n])^2*PolyLog[2, -((j*(d + e*
x))/(e*i - d*j))])/(2*e^2) - (3*b*g*i^2*m*n*(a + b*Log[c*(d + e*x)^n])^2*PolyLog[2, -((j*(d + e*x))/(e*i - d*j
))])/(2*j^2) - (21*b^3*d^2*g*m*n^3*PolyLog[2, (e*(i + j*x))/(e*i - d*j)])/(4*e^2) + (9*b^3*d^2*g*m*n^3*PolyLog
[3, -((j*(d + e*x))/(e*i - d*j))])/(2*e^2) - (3*b^3*g*i^2*m*n^3*PolyLog[3, -((j*(d + e*x))/(e*i - d*j))])/(2*j
^2) - (3*b^3*d*g*i*m*n^3*PolyLog[3, -((j*(d + e*x))/(e*i - d*j))])/(e*j) - (3*b^2*d^2*g*m*n^2*(a + b*Log[c*(d
+ e*x)^n])*PolyLog[3, -((j*(d + e*x))/(e*i - d*j))])/e^2 + (3*b^2*g*i^2*m*n^2*(a + b*Log[c*(d + e*x)^n])*PolyL
og[3, -((j*(d + e*x))/(e*i - d*j))])/j^2 + (3*b^3*d^2*g*m*n^3*PolyLog[4, -((j*(d + e*x))/(e*i - d*j))])/e^2 -
(3*b^3*g*i^2*m*n^3*PolyLog[4, -((j*(d + e*x))/(e*i - d*j))])/j^2

________________________________________________________________________________________

Rubi [A]  time = 6.89069, antiderivative size = 2050, normalized size of antiderivative = 1., number of steps used = 148, number of rules used = 32, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 1., Rules used = {2439, 2416, 2389, 2296, 2295, 2401, 2390, 2305, 2304, 2396, 2433, 2374, 2383, 6589, 6742, 2411, 2346, 2302, 30, 2330, 2430, 2301, 43, 2394, 2393, 2391, 2375, 2317, 2334, 12, 14, 2395} \[ \text{result too large to display} \]

Antiderivative was successfully verified.

[In]

Int[x*(a + b*Log[c*(d + e*x)^n])^3*(f + g*Log[h*(i + j*x)^m]),x]

[Out]

(-6*a*b^2*d*f*n^2*x)/e + (12*a*b^2*d*g*m*n^2*x)/e + (21*a*b^2*g*i*m*n^2*x)/(4*j) + (6*b^3*d*f*n^3*x)/e - (141*
b^3*d*g*m*n^3*x)/(8*e) - (45*b^3*g*i*m*n^3*x)/(8*j) + (3*b^3*g*m*n^3*x^2)/8 - (3*b^3*f*n^3*(d + e*x)^2)/(8*e^2
) + (3*b^3*g*m*n^3*(d + e*x)^2)/(8*e^2) + (3*b^3*d^2*g*m*n^3*Log[d + e*x])/(8*e^2) - (6*b^3*d*f*n^2*(d + e*x)*
Log[c*(d + e*x)^n])/e^2 + (12*b^3*d*g*m*n^2*(d + e*x)*Log[c*(d + e*x)^n])/e^2 + (21*b^3*g*i*m*n^2*(d + e*x)*Lo
g[c*(d + e*x)^n])/(4*e*j) - (3*b^2*g*m*n^2*x^2*(a + b*Log[c*(d + e*x)^n]))/8 + (3*b^2*f*n^2*(d + e*x)^2*(a + b
*Log[c*(d + e*x)^n]))/(4*e^2) - (3*b^2*g*m*n^2*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n]))/(4*e^2) + (3*b*d*f*n*(d
 + e*x)*(a + b*Log[c*(d + e*x)^n])^2)/e^2 - (15*b*d*g*m*n*(d + e*x)*(a + b*Log[c*(d + e*x)^n])^2)/(4*e^2) - (9
*b*g*i*m*n*(d + e*x)*(a + b*Log[c*(d + e*x)^n])^2)/(4*e*j) - (3*b*f*n*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n])^2
)/(4*e^2) + (3*b*g*m*n*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n])^2)/(4*e^2) - (d^2*f*(a + b*Log[c*(d + e*x)^n])^3
)/(2*e^2) + (d*g*m*(d + e*x)*(a + b*Log[c*(d + e*x)^n])^3)/(2*e^2) + (g*i*m*(d + e*x)*(a + b*Log[c*(d + e*x)^n
])^3)/(2*e*j) - (g*m*(d + e*x)^2*(a + b*Log[c*(d + e*x)^n])^3)/(4*e^2) + (3*b^3*g*i^2*m*n^3*Log[i + j*x])/(8*j
^2) - (3*b^2*g*i^2*m*n^2*(a + b*Log[c*(d + e*x)^n])*Log[(e*(i + j*x))/(e*i - d*j)])/(4*j^2) - (9*b^2*d*g*i*m*n
^2*(a + b*Log[c*(d + e*x)^n])*Log[(e*(i + j*x))/(e*i - d*j)])/(2*e*j) - (9*b*d^2*g*m*n*(a + b*Log[c*(d + e*x)^
n])^2*Log[(e*(i + j*x))/(e*i - d*j)])/(4*e^2) + (3*b*g*i^2*m*n*(a + b*Log[c*(d + e*x)^n])^2*Log[(e*(i + j*x))/
(e*i - d*j)])/(4*j^2) + (3*b*d*g*i*m*n*(a + b*Log[c*(d + e*x)^n])^2*Log[(e*(i + j*x))/(e*i - d*j)])/(2*e*j) +
(d^2*g*m*(a + b*Log[c*(d + e*x)^n])^3*Log[(e*(i + j*x))/(e*i - d*j)])/(2*e^2) - (g*i^2*m*(a + b*Log[c*(d + e*x
)^n])^3*Log[(e*(i + j*x))/(e*i - d*j)])/(2*j^2) - (3*b^3*g*n^3*x^2*Log[h*(i + j*x)^m])/8 + (21*b^3*d*g*n^3*(i
+ j*x)*Log[h*(i + j*x)^m])/(4*e*j) - (21*b^3*d^2*g*n^3*Log[-((j*(d + e*x))/(e*i - d*j))]*Log[h*(i + j*x)^m])/(
4*e^2) - (9*b^2*d*g*n^2*x*(a + b*Log[c*(d + e*x)^n])*Log[h*(i + j*x)^m])/(2*e) + (3*b^2*g*n^2*x^2*(a + b*Log[c
*(d + e*x)^n])*Log[h*(i + j*x)^m])/4 + (9*b*d^2*g*n*(a + b*Log[c*(d + e*x)^n])^2*Log[h*(i + j*x)^m])/(4*e^2) +
 (3*b*d*g*n*x*(a + b*Log[c*(d + e*x)^n])^2*Log[h*(i + j*x)^m])/(2*e) - (3*b*g*n*x^2*(a + b*Log[c*(d + e*x)^n])
^2*Log[h*(i + j*x)^m])/4 - (d^2*g*(a + b*Log[c*(d + e*x)^n])^3*Log[h*(i + j*x)^m])/(2*e^2) + (x^2*(a + b*Log[c
*(d + e*x)^n])^3*(f + g*Log[h*(i + j*x)^m]))/2 - (3*b^3*g*i^2*m*n^3*PolyLog[2, -((j*(d + e*x))/(e*i - d*j))])/
(4*j^2) - (9*b^3*d*g*i*m*n^3*PolyLog[2, -((j*(d + e*x))/(e*i - d*j))])/(2*e*j) - (9*b^2*d^2*g*m*n^2*(a + b*Log
[c*(d + e*x)^n])*PolyLog[2, -((j*(d + e*x))/(e*i - d*j))])/(2*e^2) + (3*b^2*g*i^2*m*n^2*(a + b*Log[c*(d + e*x)
^n])*PolyLog[2, -((j*(d + e*x))/(e*i - d*j))])/(2*j^2) + (3*b^2*d*g*i*m*n^2*(a + b*Log[c*(d + e*x)^n])*PolyLog
[2, -((j*(d + e*x))/(e*i - d*j))])/(e*j) + (3*b*d^2*g*m*n*(a + b*Log[c*(d + e*x)^n])^2*PolyLog[2, -((j*(d + e*
x))/(e*i - d*j))])/(2*e^2) - (3*b*g*i^2*m*n*(a + b*Log[c*(d + e*x)^n])^2*PolyLog[2, -((j*(d + e*x))/(e*i - d*j
))])/(2*j^2) - (21*b^3*d^2*g*m*n^3*PolyLog[2, (e*(i + j*x))/(e*i - d*j)])/(4*e^2) + (9*b^3*d^2*g*m*n^3*PolyLog
[3, -((j*(d + e*x))/(e*i - d*j))])/(2*e^2) - (3*b^3*g*i^2*m*n^3*PolyLog[3, -((j*(d + e*x))/(e*i - d*j))])/(2*j
^2) - (3*b^3*d*g*i*m*n^3*PolyLog[3, -((j*(d + e*x))/(e*i - d*j))])/(e*j) - (3*b^2*d^2*g*m*n^2*(a + b*Log[c*(d
+ e*x)^n])*PolyLog[3, -((j*(d + e*x))/(e*i - d*j))])/e^2 + (3*b^2*g*i^2*m*n^2*(a + b*Log[c*(d + e*x)^n])*PolyL
og[3, -((j*(d + e*x))/(e*i - d*j))])/j^2 + (3*b^3*d^2*g*m*n^3*PolyLog[4, -((j*(d + e*x))/(e*i - d*j))])/e^2 -
(3*b^3*g*i^2*m*n^3*PolyLog[4, -((j*(d + e*x))/(e*i - d*j))])/j^2

Rule 2439

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*
(g_.))*(x_)^(r_.), x_Symbol] :> Simp[(x^(r + 1)*(a + b*Log[c*(d + e*x)^n])^p*(f + g*Log[h*(i + j*x)^m]))/(r +
1), x] + (-Dist[(g*j*m)/(r + 1), Int[(x^(r + 1)*(a + b*Log[c*(d + e*x)^n])^p)/(i + j*x), x], x] - Dist[(b*e*n*
p)/(r + 1), Int[(x^(r + 1)*(a + b*Log[c*(d + e*x)^n])^(p - 1)*(f + g*Log[h*(i + j*x)^m]))/(d + e*x), x], x]) /
; FreeQ[{a, b, c, d, e, f, g, h, i, j, m, n}, x] && IGtQ[p, 0] && IntegerQ[r] && (EqQ[p, 1] || GtQ[r, 0]) && N
eQ[r, -1]

Rule 2416

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((h_.)*(x_))^(m_.)*((f_) + (g_.)*(x_)^(r_.))^(q
_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*Log[c*(d + e*x)^n])^p, (h*x)^m*(f + g*x^r)^q, x], x] /; FreeQ[{a,
 b, c, d, e, f, g, h, m, n, p, q, r}, x] && IntegerQ[m] && IntegerQ[q]

Rule 2389

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.), x_Symbol] :> Dist[1/e, Subst[Int[(a + b*Log[c*
x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, n, p}, x]

Rule 2296

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.), x_Symbol] :> Simp[x*(a + b*Log[c*x^n])^p, x] - Dist[b*n*p, In
t[(a + b*Log[c*x^n])^(p - 1), x], x] /; FreeQ[{a, b, c, n}, x] && GtQ[p, 0] && IntegerQ[2*p]

Rule 2295

Int[Log[(c_.)*(x_)^(n_.)], x_Symbol] :> Simp[x*Log[c*x^n], x] - Simp[n*x, x] /; FreeQ[{c, n}, x]

Rule 2401

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Int[Exp
andIntegrand[(f + g*x)^q*(a + b*Log[c*(d + e*x)^n])^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && NeQ[
e*f - d*g, 0] && IGtQ[q, 0]

Rule 2390

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_.)*(x_))^(q_.), x_Symbol] :> Dist[1/
e, Subst[Int[((f*x)/d)^q*(a + b*Log[c*x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p, q}, x]
 && EqQ[e*f - d*g, 0]

Rule 2305

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Lo
g[c*x^n])^p)/(d*(m + 1)), x] - Dist[(b*n*p)/(m + 1), Int[(d*x)^m*(a + b*Log[c*x^n])^(p - 1), x], x] /; FreeQ[{
a, b, c, d, m, n}, x] && NeQ[m, -1] && GtQ[p, 0]

Rule 2304

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Log[c*x^
n]))/(d*(m + 1)), x] - Simp[(b*n*(d*x)^(m + 1))/(d*(m + 1)^2), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rule 2396

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*
(f + g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n])^p)/g, x] - Dist[(b*e*n*p)/g, Int[(Log[(e*(f + g*x))/(e*f -
d*g)]*(a + b*Log[c*(d + e*x)^n])^(p - 1))/(d + e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && NeQ[e*
f - d*g, 0] && IGtQ[p, 1]

Rule 2433

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*
(g_.))*((k_.) + (l_.)*(x_))^(r_.), x_Symbol] :> Dist[1/e, Subst[Int[((k*x)/d)^r*(a + b*Log[c*x^n])^p*(f + g*Lo
g[h*((e*i - d*j)/e + (j*x)/e)^m]), x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, j, k, l, n, p, r},
 x] && EqQ[e*k - d*l, 0]

Rule 2374

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :> -Sim
p[(PolyLog[2, -(d*f*x^m)]*(a + b*Log[c*x^n])^p)/m, x] + Dist[(b*n*p)/m, Int[(PolyLog[2, -(d*f*x^m)]*(a + b*Log
[c*x^n])^(p - 1))/x, x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]

Rule 2383

Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*PolyLog[k_, (e_.)*(x_)^(q_.)])/(x_), x_Symbol] :> Simp[(PolyL
og[k + 1, e*x^q]*(a + b*Log[c*x^n])^p)/q, x] - Dist[(b*n*p)/q, Int[(PolyLog[k + 1, e*x^q]*(a + b*Log[c*x^n])^(
p - 1))/x, x], x] /; FreeQ[{a, b, c, e, k, n, q}, x] && GtQ[p, 0]

Rule 6589

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rule 6742

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rule 2411

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + (g_.)*(x_))^(q_.)*((h_.) + (i_.)*(x_))
^(r_.), x_Symbol] :> Dist[1/e, Subst[Int[((g*x)/e)^q*((e*h - d*i)/e + (i*x)/e)^r*(a + b*Log[c*x^n])^p, x], x,
d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, n, p, q, r}, x] && EqQ[e*f - d*g, 0] && (IGtQ[p, 0] || IGtQ[
r, 0]) && IntegerQ[2*r]

Rule 2346

Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_) + (e_.)*(x_))^(q_.))/(x_), x_Symbol] :> Dist[d, Int[((d
 + e*x)^(q - 1)*(a + b*Log[c*x^n])^p)/x, x], x] + Dist[e, Int[(d + e*x)^(q - 1)*(a + b*Log[c*x^n])^p, x], x] /
; FreeQ[{a, b, c, d, e, n}, x] && IGtQ[p, 0] && GtQ[q, 0] && IntegerQ[2*q]

Rule 2302

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/(x_), x_Symbol] :> Dist[1/(b*n), Subst[Int[x^p, x], x, a + b*L
og[c*x^n]], x] /; FreeQ[{a, b, c, n, p}, x]

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 2330

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = Expand
Integrand[(a + b*Log[c*x^n])^p, (d + e*x^r)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, d, e, n, p, q, r}
, x] && IntegerQ[q] && (GtQ[q, 0] || (IGtQ[p, 0] && IntegerQ[r]))

Rule 2430

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*
(g_.)), x_Symbol] :> Simp[x*(a + b*Log[c*(d + e*x)^n])^p*(f + g*Log[h*(i + j*x)^m]), x] + (-Dist[g*j*m, Int[(x
*(a + b*Log[c*(d + e*x)^n])^p)/(i + j*x), x], x] - Dist[b*e*n*p, Int[(x*(a + b*Log[c*(d + e*x)^n])^(p - 1)*(f
+ g*Log[h*(i + j*x)^m]))/(d + e*x), x], x]) /; FreeQ[{a, b, c, d, e, f, g, h, i, j, m, n}, x] && IGtQ[p, 0]

Rule 2301

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))/(x_), x_Symbol] :> Simp[(a + b*Log[c*x^n])^2/(2*b*n), x] /; FreeQ[{a
, b, c, n}, x]

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2394

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*(f +
g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n]))/g, x] - Dist[(b*e*n)/g, Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2393

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Dist[1/g, Subst[Int[(a +
 b*Log[1 + (c*e*x)/g])/x, x], x, f + g*x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && EqQ[g
 + c*(e*f - d*g), 0]

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2375

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))^(r_.)]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :
> Simp[(Log[d*(e + f*x^m)^r]*(a + b*Log[c*x^n])^(p + 1))/(b*n*(p + 1)), x] - Dist[(f*m*r)/(b*n*(p + 1)), Int[(
x^(m - 1)*(a + b*Log[c*x^n])^(p + 1))/(e + f*x^m), x], x] /; FreeQ[{a, b, c, d, e, f, r, m, n}, x] && IGtQ[p,
0] && NeQ[d*e, 1]

Rule 2317

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(Log[1 + (e*x)/d]*(a +
b*Log[c*x^n])^p)/e, x] - Dist[(b*n*p)/e, Int[(Log[1 + (e*x)/d]*(a + b*Log[c*x^n])^(p - 1))/x, x], x] /; FreeQ[
{a, b, c, d, e, n}, x] && IGtQ[p, 0]

Rule 2334

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*(x_)^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = I
ntHide[x^m*(d + e*x^r)^q, x]}, Simp[u*(a + b*Log[c*x^n]), x] - Dist[b*n, Int[SimplifyIntegrand[u/x, x], x], x]
] /; FreeQ[{a, b, c, d, e, n, r}, x] && IGtQ[q, 0] && IntegerQ[m] &&  !(EqQ[q, 1] && EqQ[m, -1])

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 2395

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Simp[((f + g
*x)^(q + 1)*(a + b*Log[c*(d + e*x)^n]))/(g*(q + 1)), x] - Dist[(b*e*n)/(g*(q + 1)), Int[(f + g*x)^(q + 1)/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, q}, x] && NeQ[e*f - d*g, 0] && NeQ[q, -1]

Rubi steps

\begin{align*} \int x \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right ) \, dx &=\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )-\frac{1}{2} (g j m) \int \frac{x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{397+j x} \, dx-\frac{1}{2} (3 b e n) \int \frac{x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \left (f+g \log \left (h (397+j x)^m\right )\right )}{d+e x} \, dx\\ &=\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )-\frac{1}{2} (g j m) \int \left (-\frac{397 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{j^2}+\frac{x \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{j}+\frac{157609 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{j^2 (397+j x)}\right ) \, dx-\frac{1}{2} (3 b e n) \int \left (\frac{f x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{d+e x}+\frac{g x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{d+e x}\right ) \, dx\\ &=\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )-\frac{1}{2} (g m) \int x \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \, dx+\frac{(397 g m) \int \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \, dx}{2 j}-\frac{(157609 g m) \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^3}{397+j x} \, dx}{2 j}-\frac{1}{2} (3 b e f n) \int \frac{x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{d+e x} \, dx-\frac{1}{2} (3 b e g n) \int \frac{x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{d+e x} \, dx\\ &=-\frac{157609 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 j^2}+\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )-\frac{1}{2} (g m) \int \left (-\frac{d \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e}+\frac{(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e}\right ) \, dx+\frac{(397 g m) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^3 \, dx,x,d+e x\right )}{2 e j}-\frac{1}{2} (3 b f n) \operatorname{Subst}\left (\int \frac{\left (-\frac{d}{e}+\frac{x}{e}\right )^2 \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx,x,d+e x\right )-\frac{1}{2} (3 b e g n) \int \left (-\frac{d \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{e^2}+\frac{x \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{e}+\frac{d^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{e^2 (d+e x)}\right ) \, dx+\frac{(472827 b e g m n) \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{d+e x} \, dx}{2 j^2}\\ &=\frac{397 g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e j}-\frac{157609 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 j^2}+\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )-\frac{(g m) \int (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \, dx}{2 e}+\frac{(d g m) \int \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \, dx}{2 e}-\frac{(3 b f n) \operatorname{Subst}\left (\int \left (-\frac{d}{e}+\frac{x}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{2 e}+\frac{(3 b d f n) \operatorname{Subst}\left (\int \frac{\left (-\frac{d}{e}+\frac{x}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx,x,d+e x\right )}{2 e}-\frac{1}{2} (3 b g n) \int x \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right ) \, dx+\frac{(3 b d g n) \int \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right ) \, dx}{2 e}-\frac{\left (3 b d^2 g n\right ) \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{d+e x} \, dx}{2 e}+\frac{(472827 b g m n) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right )^2 \log \left (\frac{e \left (\frac{397 e-d j}{e}+\frac{j x}{e}\right )}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{2 j^2}-\frac{(1191 b g m n) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{2 e j}\\ &=-\frac{1191 b g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 e j}+\frac{397 g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e j}-\frac{157609 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 j^2}+\frac{3 b d g n x \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{2 e}-\frac{3}{4} b g n x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )+\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )-\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}-\frac{(g m) \operatorname{Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right )^3 \, dx,x,d+e x\right )}{2 e^2}+\frac{(d g m) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^3 \, dx,x,d+e x\right )}{2 e^2}+\frac{(3 b d f n) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{2 e^2}-\frac{\left (3 b d^2 f n\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx,x,d+e x\right )}{2 e^2}-\frac{(3 b f n) \operatorname{Subst}\left (\int \left (-\frac{d \left (a+b \log \left (c x^n\right )\right )^2}{e}+\frac{x \left (a+b \log \left (c x^n\right )\right )^2}{e}\right ) \, dx,x,d+e x\right )}{2 e}-\frac{\left (3 b d^2 g n\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right )^2 \log \left (h \left (\frac{397 e-d j}{e}+\frac{j x}{e}\right )^m\right )}{x} \, dx,x,d+e x\right )}{2 e^2}+\frac{1}{4} (3 b g j m n) \int \frac{x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{397+j x} \, dx-\frac{(3 b d g j m n) \int \frac{x \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{397+j x} \, dx}{2 e}-\left (3 b^2 d g n^2\right ) \int \frac{x \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{d+e x} \, dx+\frac{1}{2} \left (3 b^2 e g n^2\right ) \int \frac{x^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{d+e x} \, dx+\frac{\left (472827 b^2 g m n^2\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right ) \text{Li}_2\left (-\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{j^2}+\frac{\left (1191 b^2 g m n^2\right ) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{e j}\\ &=\frac{1191 a b^2 g m n^2 x}{j}+\frac{3 b d f n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 e^2}-\frac{1191 b g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 e j}+\frac{d g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{397 g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e j}-\frac{g m (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{4 e^2}-\frac{157609 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 j^2}+\frac{3 b d g n x \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{2 e}-\frac{3}{4} b g n x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )-\frac{d^2 g \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (h (397+j x)^m\right )}{2 e^2}+\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )-\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}+\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}-\frac{\left (3 d^2 f\right ) \operatorname{Subst}\left (\int x^2 \, dx,x,a+b \log \left (c (d+e x)^n\right )\right )}{2 e^2}+\frac{\left (d^2 g j m\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right )^3}{\frac{397 e-d j}{e}+\frac{j x}{e}} \, dx,x,d+e x\right )}{2 e^3}-\frac{(3 b f n) \operatorname{Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{2 e^2}+\frac{(3 b d f n) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{2 e^2}+\frac{(3 b g m n) \operatorname{Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{4 e^2}-\frac{(3 b d g m n) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{2 e^2}+\frac{1}{4} (3 b g j m n) \int \left (-\frac{397 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{j^2}+\frac{x \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{j}+\frac{157609 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{j^2 (397+j x)}\right ) \, dx-\frac{(3 b d g j m n) \int \left (\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{j}-\frac{397 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{j (397+j x)}\right ) \, dx}{2 e}-\frac{\left (3 b^2 d f n^2\right ) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{e^2}-\left (3 b^2 d g n^2\right ) \int \left (\frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{e}-\frac{d \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{e (d+e x)}\right ) \, dx+\frac{1}{2} \left (3 b^2 e g n^2\right ) \int \left (-\frac{d \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{e^2}+\frac{x \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{e}+\frac{d^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{e^2 (d+e x)}\right ) \, dx+\frac{\left (1191 b^3 g m n^2\right ) \operatorname{Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{e j}-\frac{\left (472827 b^3 g m n^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_3\left (-\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{j^2}\\ &=-\frac{3 a b^2 d f n^2 x}{e}+\frac{1191 a b^2 g m n^2 x}{j}-\frac{1191 b^3 g m n^3 x}{j}+\frac{1191 b^3 g m n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e j}+\frac{3 b d f n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac{3 b d g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 e^2}-\frac{1191 b g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 e j}-\frac{3 b f n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac{3 b g m n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{8 e^2}-\frac{d^2 f \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{d g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{397 g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e j}-\frac{g m (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{4 e^2}-\frac{157609 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 j^2}+\frac{3 b d g n x \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{2 e}-\frac{3}{4} b g n x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )-\frac{d^2 g \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (h (397+j x)^m\right )}{2 e^2}+\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )+\frac{d^2 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (1+\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}-\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}+\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}-\frac{472827 b^3 g m n^3 \text{Li}_4\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}+\frac{1}{4} (3 b g m n) \int x \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx-\frac{\left (3 b d^2 g m n\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{2 e^2}-\frac{(3 b d g m n) \int \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx}{2 e}+\frac{(1191 b d g m n) \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{397+j x} \, dx}{2 e}-\frac{(1191 b g m n) \int \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx}{4 j}+\frac{(472827 b g m n) \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{397+j x} \, dx}{4 j}+\frac{\left (3 b^2 f n^2\right ) \operatorname{Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{2 e^2}-\frac{\left (3 b^2 d f n^2\right ) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{e^2}-\frac{\left (3 b^3 d f n^2\right ) \operatorname{Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{e^2}+\frac{1}{2} \left (3 b^2 g n^2\right ) \int x \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right ) \, dx-\frac{\left (3 b^2 d g n^2\right ) \int \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right ) \, dx}{2 e}-\frac{\left (3 b^2 d g n^2\right ) \int \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right ) \, dx}{e}+\frac{\left (3 b^2 d^2 g n^2\right ) \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{d+e x} \, dx}{2 e}+\frac{\left (3 b^2 d^2 g n^2\right ) \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{d+e x} \, dx}{e}-\frac{\left (3 b^2 g m n^2\right ) \operatorname{Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{4 e^2}+\frac{\left (3 b^2 d g m n^2\right ) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{e^2}\\ &=-\frac{6 a b^2 d f n^2 x}{e}+\frac{3 a b^2 d g m n^2 x}{e}+\frac{1191 a b^2 g m n^2 x}{j}+\frac{3 b^3 d f n^3 x}{e}-\frac{1191 b^3 g m n^3 x}{j}-\frac{3 b^3 f n^3 (d+e x)^2}{8 e^2}+\frac{3 b^3 g m n^3 (d+e x)^2}{16 e^2}-\frac{3 b^3 d f n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e^2}+\frac{1191 b^3 g m n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e j}+\frac{3 b^2 f n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}-\frac{3 b^2 g m n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{8 e^2}+\frac{3 b d f n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac{3 b d g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 e^2}-\frac{1191 b g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 e j}-\frac{3 b f n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac{3 b g m n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{8 e^2}-\frac{d^2 f \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{d g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{397 g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e j}-\frac{g m (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{4 e^2}+\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{4 j^2}+\frac{1191 b d g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 e j}-\frac{157609 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 j^2}-\frac{9 b^2 d g n^2 x \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{2 e}+\frac{3}{4} b^2 g n^2 x^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )+\frac{3 b d g n x \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{2 e}-\frac{3}{4} b g n x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )-\frac{d^2 g \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (h (397+j x)^m\right )}{2 e^2}+\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )+\frac{d^2 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (1+\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}+\frac{3 b d^2 g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}-\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}+\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}-\frac{472827 b^3 g m n^3 \text{Li}_4\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}+\frac{1}{4} (3 b g m n) \int \left (-\frac{d \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e}+\frac{(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e}\right ) \, dx-\frac{(3 b d g m n) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{2 e^2}-\frac{(1191 b g m n) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{4 e j}-\frac{\left (3 b^3 d f n^2\right ) \operatorname{Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{e^2}+\frac{\left (3 b^2 d^2 g n^2\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (h \left (\frac{397 e-d j}{e}+\frac{j x}{e}\right )^m\right )}{x} \, dx,x,d+e x\right )}{2 e^2}+\frac{\left (3 b^2 d^2 g n^2\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (h \left (\frac{397 e-d j}{e}+\frac{j x}{e}\right )^m\right )}{x} \, dx,x,d+e x\right )}{e^2}+\frac{\left (3 b^3 d g m n^2\right ) \operatorname{Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{e^2}-\frac{\left (3 b^2 d^2 g m n^2\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right ) \text{Li}_2\left (-\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{e^2}-\frac{\left (472827 b^2 e g m n^2\right ) \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{d+e x} \, dx}{2 j^2}-\frac{\left (1191 b^2 d g m n^2\right ) \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{d+e x} \, dx}{j}-\frac{1}{4} \left (3 b^2 g j m n^2\right ) \int \frac{x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{397+j x} \, dx+\frac{\left (3 b^2 d g j m n^2\right ) \int \frac{x \left (a+b \log \left (c (d+e x)^n\right )\right )}{397+j x} \, dx}{2 e}+\frac{\left (3 b^2 d g j m n^2\right ) \int \frac{x \left (a+b \log \left (c (d+e x)^n\right )\right )}{397+j x} \, dx}{e}+\frac{1}{2} \left (3 b^3 d g n^3\right ) \int \frac{x \log \left (h (397+j x)^m\right )}{d+e x} \, dx+\left (3 b^3 d g n^3\right ) \int \frac{x \log \left (h (397+j x)^m\right )}{d+e x} \, dx-\frac{1}{4} \left (3 b^3 e g n^3\right ) \int \frac{x^2 \log \left (h (397+j x)^m\right )}{d+e x} \, dx\\ &=-\frac{6 a b^2 d f n^2 x}{e}+\frac{3 a b^2 d g m n^2 x}{e}+\frac{1191 a b^2 g m n^2 x}{j}+\frac{6 b^3 d f n^3 x}{e}-\frac{3 b^3 d g m n^3 x}{e}-\frac{1191 b^3 g m n^3 x}{j}-\frac{3 b^3 f n^3 (d+e x)^2}{8 e^2}+\frac{3 b^3 g m n^3 (d+e x)^2}{16 e^2}-\frac{6 b^3 d f n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e^2}+\frac{3 b^3 d g m n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e^2}+\frac{1191 b^3 g m n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e j}+\frac{3 b^2 f n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}-\frac{3 b^2 g m n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{8 e^2}+\frac{3 b d f n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac{3 b d g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac{3573 b g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e j}-\frac{3 b f n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac{3 b g m n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{8 e^2}-\frac{d^2 f \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{d g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{397 g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e j}-\frac{g m (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{4 e^2}+\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{4 j^2}+\frac{1191 b d g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 e j}-\frac{157609 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 j^2}-\frac{9 b^2 d g n^2 x \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{2 e}+\frac{3}{4} b^2 g n^2 x^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )+\frac{9 b d^2 g n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{4 e^2}+\frac{3 b d g n x \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{2 e}-\frac{3}{4} b g n x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )-\frac{d^2 g \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (h (397+j x)^m\right )}{2 e^2}+\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )+\frac{d^2 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (1+\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}+\frac{3 b d^2 g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}-\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}-\frac{3 b^2 d^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e^2}+\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}-\frac{472827 b^3 g m n^3 \text{Li}_4\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}+\frac{(3 b g m n) \int (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx}{4 e}-\frac{(3 b d g m n) \int \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx}{4 e}-\frac{\left (3 b d^2 g j m n\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right )^2}{\frac{397 e-d j}{e}+\frac{j x}{e}} \, dx,x,d+e x\right )}{4 e^3}-\frac{\left (3 b d^2 g j m n\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right )^2}{\frac{397 e-d j}{e}+\frac{j x}{e}} \, dx,x,d+e x\right )}{2 e^3}+\frac{\left (3 b^2 d g m n^2\right ) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{e^2}-\frac{\left (472827 b^2 g m n^2\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (\frac{e \left (\frac{397 e-d j}{e}+\frac{j x}{e}\right )}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{2 j^2}+\frac{\left (1191 b^2 g m n^2\right ) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{2 e j}-\frac{\left (1191 b^2 d g m n^2\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (\frac{e \left (\frac{397 e-d j}{e}+\frac{j x}{e}\right )}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{e j}-\frac{1}{4} \left (3 b^2 g j m n^2\right ) \int \left (-\frac{397 \left (a+b \log \left (c (d+e x)^n\right )\right )}{j^2}+\frac{x \left (a+b \log \left (c (d+e x)^n\right )\right )}{j}+\frac{157609 \left (a+b \log \left (c (d+e x)^n\right )\right )}{j^2 (397+j x)}\right ) \, dx+\frac{\left (3 b^2 d g j m n^2\right ) \int \left (\frac{a+b \log \left (c (d+e x)^n\right )}{j}-\frac{397 \left (a+b \log \left (c (d+e x)^n\right )\right )}{j (397+j x)}\right ) \, dx}{2 e}+\frac{\left (3 b^2 d g j m n^2\right ) \int \left (\frac{a+b \log \left (c (d+e x)^n\right )}{j}-\frac{397 \left (a+b \log \left (c (d+e x)^n\right )\right )}{j (397+j x)}\right ) \, dx}{e}+\frac{1}{2} \left (3 b^3 d g n^3\right ) \int \left (\frac{\log \left (h (397+j x)^m\right )}{e}-\frac{d \log \left (h (397+j x)^m\right )}{e (d+e x)}\right ) \, dx+\left (3 b^3 d g n^3\right ) \int \left (\frac{\log \left (h (397+j x)^m\right )}{e}-\frac{d \log \left (h (397+j x)^m\right )}{e (d+e x)}\right ) \, dx-\frac{1}{4} \left (3 b^3 e g n^3\right ) \int \left (-\frac{d \log \left (h (397+j x)^m\right )}{e^2}+\frac{x \log \left (h (397+j x)^m\right )}{e}+\frac{d^2 \log \left (h (397+j x)^m\right )}{e^2 (d+e x)}\right ) \, dx+\frac{\left (3 b^3 d^2 g m n^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_3\left (-\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{e^2}\\ &=-\frac{6 a b^2 d f n^2 x}{e}+\frac{6 a b^2 d g m n^2 x}{e}+\frac{3573 a b^2 g m n^2 x}{2 j}+\frac{6 b^3 d f n^3 x}{e}-\frac{3 b^3 d g m n^3 x}{e}-\frac{1191 b^3 g m n^3 x}{j}-\frac{3 b^3 f n^3 (d+e x)^2}{8 e^2}+\frac{3 b^3 g m n^3 (d+e x)^2}{16 e^2}-\frac{6 b^3 d f n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e^2}+\frac{3 b^3 d g m n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e^2}+\frac{1191 b^3 g m n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e j}+\frac{3 b^2 f n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}-\frac{3 b^2 g m n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{8 e^2}+\frac{3 b d f n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac{3 b d g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac{3573 b g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e j}-\frac{3 b f n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac{3 b g m n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{8 e^2}-\frac{d^2 f \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{d g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{397 g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e j}-\frac{g m (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{4 e^2}+\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{4 j^2}+\frac{1191 b d g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 e j}-\frac{157609 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 j^2}-\frac{9 b^2 d g n^2 x \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{2 e}+\frac{3}{4} b^2 g n^2 x^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )+\frac{9 b d^2 g n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{4 e^2}+\frac{3 b d g n x \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{2 e}-\frac{3}{4} b g n x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )-\frac{d^2 g \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (h (397+j x)^m\right )}{2 e^2}+\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )-\frac{9 b d^2 g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (1+\frac{j (d+e x)}{397 e-d j}\right )}{4 e^2}+\frac{d^2 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (1+\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}+\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}+\frac{1191 b^2 d g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e j}+\frac{3 b d^2 g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}-\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}-\frac{3 b^2 d^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e^2}+\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}+\frac{3 b^3 d^2 g m n^3 \text{Li}_4\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e^2}-\frac{472827 b^3 g m n^3 \text{Li}_4\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}+\frac{(3 b g m n) \operatorname{Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{4 e^2}-\frac{(3 b d g m n) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{4 e^2}-\frac{1}{4} \left (3 b^2 g m n^2\right ) \int x \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx+\frac{\left (3 b^3 d g m n^2\right ) \operatorname{Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{e^2}+\frac{\left (3 b^2 d^2 g m n^2\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{2 e^2}+\frac{\left (3 b^2 d^2 g m n^2\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{e^2}+\frac{\left (3 b^2 d g m n^2\right ) \int \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx}{2 e}+\frac{\left (3 b^2 d g m n^2\right ) \int \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx}{e}-\frac{\left (1191 b^2 d g m n^2\right ) \int \frac{a+b \log \left (c (d+e x)^n\right )}{397+j x} \, dx}{2 e}-\frac{\left (1191 b^2 d g m n^2\right ) \int \frac{a+b \log \left (c (d+e x)^n\right )}{397+j x} \, dx}{e}+\frac{\left (1191 b^2 g m n^2\right ) \int \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx}{4 j}-\frac{\left (472827 b^2 g m n^2\right ) \int \frac{a+b \log \left (c (d+e x)^n\right )}{397+j x} \, dx}{4 j}+\frac{\left (1191 b^3 g m n^2\right ) \operatorname{Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{2 e j}-\frac{1}{4} \left (3 b^3 g n^3\right ) \int x \log \left (h (397+j x)^m\right ) \, dx+\frac{\left (3 b^3 d g n^3\right ) \int \log \left (h (397+j x)^m\right ) \, dx}{4 e}+\frac{\left (3 b^3 d g n^3\right ) \int \log \left (h (397+j x)^m\right ) \, dx}{2 e}+\frac{\left (3 b^3 d g n^3\right ) \int \log \left (h (397+j x)^m\right ) \, dx}{e}-\frac{\left (3 b^3 d^2 g n^3\right ) \int \frac{\log \left (h (397+j x)^m\right )}{d+e x} \, dx}{4 e}-\frac{\left (3 b^3 d^2 g n^3\right ) \int \frac{\log \left (h (397+j x)^m\right )}{d+e x} \, dx}{2 e}-\frac{\left (3 b^3 d^2 g n^3\right ) \int \frac{\log \left (h (397+j x)^m\right )}{d+e x} \, dx}{e}-\frac{\left (472827 b^3 g m n^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (-\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{2 j^2}-\frac{\left (1191 b^3 d g m n^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (-\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{e j}\\ &=-\frac{6 a b^2 d f n^2 x}{e}+\frac{21 a b^2 d g m n^2 x}{2 e}+\frac{8337 a b^2 g m n^2 x}{4 j}+\frac{6 b^3 d f n^3 x}{e}-\frac{6 b^3 d g m n^3 x}{e}-\frac{3573 b^3 g m n^3 x}{2 j}-\frac{3 b^3 f n^3 (d+e x)^2}{8 e^2}+\frac{3 b^3 g m n^3 (d+e x)^2}{16 e^2}-\frac{6 b^3 d f n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e^2}+\frac{6 b^3 d g m n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e^2}+\frac{3573 b^3 g m n^2 (d+e x) \log \left (c (d+e x)^n\right )}{2 e j}-\frac{3}{8} b^2 g m n^2 x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )+\frac{3 b^2 f n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}-\frac{3 b^2 g m n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{8 e^2}+\frac{3 b d f n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac{15 b d g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}-\frac{3573 b g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e j}-\frac{3 b f n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac{3 b g m n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}-\frac{d^2 f \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{d g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{397 g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e j}-\frac{g m (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{4 e^2}-\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{4 j^2}-\frac{3573 b^2 d g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 e j}+\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{4 j^2}+\frac{1191 b d g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 e j}-\frac{157609 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 j^2}-\frac{3}{8} b^3 g n^3 x^2 \log \left (h (397+j x)^m\right )-\frac{21 b^3 d^2 g n^3 \log \left (-\frac{j (d+e x)}{397 e-d j}\right ) \log \left (h (397+j x)^m\right )}{4 e^2}-\frac{9 b^2 d g n^2 x \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{2 e}+\frac{3}{4} b^2 g n^2 x^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )+\frac{9 b d^2 g n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{4 e^2}+\frac{3 b d g n x \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{2 e}-\frac{3}{4} b g n x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )-\frac{d^2 g \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (h (397+j x)^m\right )}{2 e^2}+\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )-\frac{9 b d^2 g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (1+\frac{j (d+e x)}{397 e-d j}\right )}{4 e^2}+\frac{d^2 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (1+\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}-\frac{9 b^2 d^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}+\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}+\frac{1191 b^2 d g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e j}+\frac{3 b d^2 g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}-\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}-\frac{472827 b^3 g m n^3 \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}-\frac{1191 b^3 d g m n^3 \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e j}-\frac{3 b^2 d^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e^2}+\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}+\frac{3 b^3 d^2 g m n^3 \text{Li}_4\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e^2}-\frac{472827 b^3 g m n^3 \text{Li}_4\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}-\frac{\left (3 b^2 g m n^2\right ) \operatorname{Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{4 e^2}+\frac{\left (3 b^2 d g m n^2\right ) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{2 e^2}+\frac{\left (3 b^3 d g m n^2\right ) \int \log \left (c (d+e x)^n\right ) \, dx}{2 e}+\frac{\left (3 b^3 d g m n^2\right ) \int \log \left (c (d+e x)^n\right ) \, dx}{e}+\frac{\left (1191 b^3 g m n^2\right ) \int \log \left (c (d+e x)^n\right ) \, dx}{4 j}+\frac{\left (3 b^3 d g n^3\right ) \operatorname{Subst}\left (\int \log \left (h x^m\right ) \, dx,x,397+j x\right )}{4 e j}+\frac{\left (3 b^3 d g n^3\right ) \operatorname{Subst}\left (\int \log \left (h x^m\right ) \, dx,x,397+j x\right )}{2 e j}+\frac{\left (3 b^3 d g n^3\right ) \operatorname{Subst}\left (\int \log \left (h x^m\right ) \, dx,x,397+j x\right )}{e j}+\frac{\left (3 b^3 d^2 g m n^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (-\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{2 e^2}+\frac{\left (3 b^3 d^2 g m n^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (-\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{e^2}+\frac{1}{8} \left (3 b^3 e g m n^3\right ) \int \frac{x^2}{d+e x} \, dx+\frac{\left (472827 b^3 e g m n^3\right ) \int \frac{\log \left (\frac{e (397+j x)}{397 e-d j}\right )}{d+e x} \, dx}{4 j^2}+\frac{\left (1191 b^3 d g m n^3\right ) \int \frac{\log \left (\frac{e (397+j x)}{397 e-d j}\right )}{d+e x} \, dx}{2 j}+\frac{\left (1191 b^3 d g m n^3\right ) \int \frac{\log \left (\frac{e (397+j x)}{397 e-d j}\right )}{d+e x} \, dx}{j}+\frac{1}{8} \left (3 b^3 g j m n^3\right ) \int \frac{x^2}{397+j x} \, dx+\frac{\left (3 b^3 d^2 g j m n^3\right ) \int \frac{\log \left (\frac{j (d+e x)}{-397 e+d j}\right )}{397+j x} \, dx}{4 e^2}+\frac{\left (3 b^3 d^2 g j m n^3\right ) \int \frac{\log \left (\frac{j (d+e x)}{-397 e+d j}\right )}{397+j x} \, dx}{2 e^2}+\frac{\left (3 b^3 d^2 g j m n^3\right ) \int \frac{\log \left (\frac{j (d+e x)}{-397 e+d j}\right )}{397+j x} \, dx}{e^2}\\ &=-\frac{6 a b^2 d f n^2 x}{e}+\frac{12 a b^2 d g m n^2 x}{e}+\frac{8337 a b^2 g m n^2 x}{4 j}+\frac{6 b^3 d f n^3 x}{e}-\frac{45 b^3 d g m n^3 x}{4 e}-\frac{3573 b^3 g m n^3 x}{2 j}-\frac{3 b^3 f n^3 (d+e x)^2}{8 e^2}+\frac{3 b^3 g m n^3 (d+e x)^2}{8 e^2}-\frac{6 b^3 d f n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e^2}+\frac{6 b^3 d g m n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e^2}+\frac{3573 b^3 g m n^2 (d+e x) \log \left (c (d+e x)^n\right )}{2 e j}-\frac{3}{8} b^2 g m n^2 x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )+\frac{3 b^2 f n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}-\frac{3 b^2 g m n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}+\frac{3 b d f n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac{15 b d g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}-\frac{3573 b g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e j}-\frac{3 b f n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac{3 b g m n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}-\frac{d^2 f \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{d g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{397 g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e j}-\frac{g m (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{4 e^2}-\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{4 j^2}-\frac{3573 b^2 d g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 e j}+\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{4 j^2}+\frac{1191 b d g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 e j}-\frac{157609 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 j^2}-\frac{3}{8} b^3 g n^3 x^2 \log \left (h (397+j x)^m\right )+\frac{21 b^3 d g n^3 (397+j x) \log \left (h (397+j x)^m\right )}{4 e j}-\frac{21 b^3 d^2 g n^3 \log \left (-\frac{j (d+e x)}{397 e-d j}\right ) \log \left (h (397+j x)^m\right )}{4 e^2}-\frac{9 b^2 d g n^2 x \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{2 e}+\frac{3}{4} b^2 g n^2 x^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )+\frac{9 b d^2 g n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{4 e^2}+\frac{3 b d g n x \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{2 e}-\frac{3}{4} b g n x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )-\frac{d^2 g \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (h (397+j x)^m\right )}{2 e^2}+\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )-\frac{9 b d^2 g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (1+\frac{j (d+e x)}{397 e-d j}\right )}{4 e^2}+\frac{d^2 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (1+\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}-\frac{9 b^2 d^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}+\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}+\frac{1191 b^2 d g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e j}+\frac{3 b d^2 g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}-\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}+\frac{9 b^3 d^2 g m n^3 \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}-\frac{472827 b^3 g m n^3 \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}-\frac{1191 b^3 d g m n^3 \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e j}-\frac{3 b^2 d^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e^2}+\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}+\frac{3 b^3 d^2 g m n^3 \text{Li}_4\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e^2}-\frac{472827 b^3 g m n^3 \text{Li}_4\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}+2 \frac{\left (3 b^3 d g m n^2\right ) \operatorname{Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{2 e^2}+\frac{\left (3 b^3 d g m n^2\right ) \operatorname{Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{e^2}+\frac{\left (1191 b^3 g m n^2\right ) \operatorname{Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{4 e j}+\frac{\left (3 b^3 d^2 g m n^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{e x}{-397 e+d j}\right )}{x} \, dx,x,397+j x\right )}{4 e^2}+\frac{\left (3 b^3 d^2 g m n^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{e x}{-397 e+d j}\right )}{x} \, dx,x,397+j x\right )}{2 e^2}+\frac{\left (3 b^3 d^2 g m n^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{e x}{-397 e+d j}\right )}{x} \, dx,x,397+j x\right )}{e^2}+\frac{1}{8} \left (3 b^3 e g m n^3\right ) \int \left (-\frac{d}{e^2}+\frac{x}{e}+\frac{d^2}{e^2 (d+e x)}\right ) \, dx+\frac{\left (472827 b^3 g m n^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{4 j^2}+\frac{\left (1191 b^3 d g m n^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{2 e j}+\frac{\left (1191 b^3 d g m n^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{j x}{397 e-d j}\right )}{x} \, dx,x,d+e x\right )}{e j}+\frac{1}{8} \left (3 b^3 g j m n^3\right ) \int \left (-\frac{397}{j^2}+\frac{x}{j}+\frac{157609}{j^2 (397+j x)}\right ) \, dx\\ &=-\frac{6 a b^2 d f n^2 x}{e}+\frac{12 a b^2 d g m n^2 x}{e}+\frac{8337 a b^2 g m n^2 x}{4 j}+\frac{6 b^3 d f n^3 x}{e}-\frac{117 b^3 d g m n^3 x}{8 e}-\frac{17865 b^3 g m n^3 x}{8 j}+\frac{3}{8} b^3 g m n^3 x^2-\frac{3 b^3 f n^3 (d+e x)^2}{8 e^2}+\frac{3 b^3 g m n^3 (d+e x)^2}{8 e^2}+\frac{3 b^3 d^2 g m n^3 \log (d+e x)}{8 e^2}-\frac{6 b^3 d f n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e^2}+\frac{9 b^3 d g m n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e^2}+\frac{8337 b^3 g m n^2 (d+e x) \log \left (c (d+e x)^n\right )}{4 e j}-\frac{3}{8} b^2 g m n^2 x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )+\frac{3 b^2 f n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}-\frac{3 b^2 g m n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}+\frac{3 b d f n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac{15 b d g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}-\frac{3573 b g m n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e j}-\frac{3 b f n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac{3 b g m n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}-\frac{d^2 f \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{d g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac{397 g m (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e j}-\frac{g m (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{4 e^2}+2 \left (-\frac{3 b^3 d g m n^3 x}{2 e}+\frac{3 b^3 d g m n^2 (d+e x) \log \left (c (d+e x)^n\right )}{2 e^2}\right )+\frac{472827 b^3 g m n^3 \log (397+j x)}{8 j^2}-\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{4 j^2}-\frac{3573 b^2 d g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 e j}+\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{4 j^2}+\frac{1191 b d g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 e j}-\frac{157609 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac{e (397+j x)}{397 e-d j}\right )}{2 j^2}-\frac{3}{8} b^3 g n^3 x^2 \log \left (h (397+j x)^m\right )+\frac{21 b^3 d g n^3 (397+j x) \log \left (h (397+j x)^m\right )}{4 e j}-\frac{21 b^3 d^2 g n^3 \log \left (-\frac{j (d+e x)}{397 e-d j}\right ) \log \left (h (397+j x)^m\right )}{4 e^2}-\frac{9 b^2 d g n^2 x \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )}{2 e}+\frac{3}{4} b^2 g n^2 x^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (h (397+j x)^m\right )+\frac{9 b d^2 g n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{4 e^2}+\frac{3 b d g n x \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )}{2 e}-\frac{3}{4} b g n x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (h (397+j x)^m\right )-\frac{d^2 g \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (h (397+j x)^m\right )}{2 e^2}+\frac{1}{2} x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \left (f+g \log \left (h (397+j x)^m\right )\right )-\frac{9 b d^2 g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (1+\frac{j (d+e x)}{397 e-d j}\right )}{4 e^2}+\frac{d^2 g m \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (1+\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}-\frac{472827 b^3 g m n^3 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{4 j^2}-\frac{3573 b^3 d g m n^3 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 e j}-\frac{9 b^2 d^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}+\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}+\frac{1191 b^2 d g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e j}+\frac{3 b d^2 g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}-\frac{472827 b g m n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text{Li}_2\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}-\frac{21 b^3 d^2 g m n^3 \text{Li}_2\left (\frac{e (397+j x)}{397 e-d j}\right )}{4 e^2}+\frac{9 b^3 d^2 g m n^3 \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 e^2}-\frac{472827 b^3 g m n^3 \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{2 j^2}-\frac{1191 b^3 d g m n^3 \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e j}-\frac{3 b^2 d^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e^2}+\frac{472827 b^2 g m n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_3\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}+\frac{3 b^3 d^2 g m n^3 \text{Li}_4\left (-\frac{j (d+e x)}{397 e-d j}\right )}{e^2}-\frac{472827 b^3 g m n^3 \text{Li}_4\left (-\frac{j (d+e x)}{397 e-d j}\right )}{j^2}\\ \end{align*}

Mathematica [B]  time = 3.38738, size = 4971, normalized size = 2.42 \[ \text{Result too large to show} \]

Antiderivative was successfully verified.

[In]

Integrate[x*(a + b*Log[c*(d + e*x)^n])^3*(f + g*Log[h*(i + j*x)^m]),x]

[Out]

(-12*a^2*b*d*e*g*i*j*m*n + 12*a*b^2*d*e*g*i*j*m*n^2 + 24*a*b^2*d^2*g*j^2*m*n^2 - 6*b^3*d*e*g*i*j*m*n^3 - 36*b^
3*d^2*g*j^2*m*n^3 + 4*a^3*e^2*g*i*j*m*x + 12*a^2*b*d*e*f*j^2*n*x - 18*a^2*b*e^2*g*i*j*m*n*x - 18*a^2*b*d*e*g*j
^2*m*n*x - 36*a*b^2*d*e*f*j^2*n^2*x + 42*a*b^2*e^2*g*i*j*m*n^2*x + 84*a*b^2*d*e*g*j^2*m*n^2*x + 42*b^3*d*e*f*j
^2*n^3*x - 45*b^3*e^2*g*i*j*m*n^3*x - 135*b^3*d*e*g*j^2*m*n^3*x + 4*a^3*e^2*f*j^2*x^2 - 2*a^3*e^2*g*j^2*m*x^2
- 6*a^2*b*e^2*f*j^2*n*x^2 + 6*a^2*b*e^2*g*j^2*m*n*x^2 + 6*a*b^2*e^2*f*j^2*n^2*x^2 - 9*a*b^2*e^2*g*j^2*m*n^2*x^
2 - 3*b^3*e^2*f*j^2*n^3*x^2 + 6*b^3*e^2*g*j^2*m*n^3*x^2 - 12*a^2*b*d^2*f*j^2*n*Log[d + e*x] + 12*a^2*b*d*e*g*i
*j*m*n*Log[d + e*x] + 6*a^2*b*d^2*g*j^2*m*n*Log[d + e*x] + 36*a*b^2*d^2*f*j^2*n^2*Log[d + e*x] - 12*a*b^2*d*e*
g*i*j*m*n^2*Log[d + e*x] - 48*a*b^2*d^2*g*j^2*m*n^2*Log[d + e*x] - 42*b^3*d^2*f*j^2*n^3*Log[d + e*x] + 30*b^3*
d*e*g*i*j*m*n^3*Log[d + e*x] + 69*b^3*d^2*g*j^2*m*n^3*Log[d + e*x] + 12*a*b^2*d^2*f*j^2*n^2*Log[d + e*x]^2 - 1
2*a*b^2*d*e*g*i*j*m*n^2*Log[d + e*x]^2 - 6*a*b^2*d^2*g*j^2*m*n^2*Log[d + e*x]^2 - 18*b^3*d^2*f*j^2*n^3*Log[d +
 e*x]^2 + 6*b^3*d*e*g*i*j*m*n^3*Log[d + e*x]^2 + 24*b^3*d^2*g*j^2*m*n^3*Log[d + e*x]^2 - 4*b^3*d^2*f*j^2*n^3*L
og[d + e*x]^3 + 4*b^3*d*e*g*i*j*m*n^3*Log[d + e*x]^3 + 2*b^3*d^2*g*j^2*m*n^3*Log[d + e*x]^3 - 24*a*b^2*d*e*g*i
*j*m*n*Log[c*(d + e*x)^n] + 12*b^3*d*e*g*i*j*m*n^2*Log[c*(d + e*x)^n] + 24*b^3*d^2*g*j^2*m*n^2*Log[c*(d + e*x)
^n] + 12*a^2*b*e^2*g*i*j*m*x*Log[c*(d + e*x)^n] + 24*a*b^2*d*e*f*j^2*n*x*Log[c*(d + e*x)^n] - 36*a*b^2*e^2*g*i
*j*m*n*x*Log[c*(d + e*x)^n] - 36*a*b^2*d*e*g*j^2*m*n*x*Log[c*(d + e*x)^n] - 36*b^3*d*e*f*j^2*n^2*x*Log[c*(d +
e*x)^n] + 42*b^3*e^2*g*i*j*m*n^2*x*Log[c*(d + e*x)^n] + 84*b^3*d*e*g*j^2*m*n^2*x*Log[c*(d + e*x)^n] + 12*a^2*b
*e^2*f*j^2*x^2*Log[c*(d + e*x)^n] - 6*a^2*b*e^2*g*j^2*m*x^2*Log[c*(d + e*x)^n] - 12*a*b^2*e^2*f*j^2*n*x^2*Log[
c*(d + e*x)^n] + 12*a*b^2*e^2*g*j^2*m*n*x^2*Log[c*(d + e*x)^n] + 6*b^3*e^2*f*j^2*n^2*x^2*Log[c*(d + e*x)^n] -
9*b^3*e^2*g*j^2*m*n^2*x^2*Log[c*(d + e*x)^n] - 24*a*b^2*d^2*f*j^2*n*Log[d + e*x]*Log[c*(d + e*x)^n] + 24*a*b^2
*d*e*g*i*j*m*n*Log[d + e*x]*Log[c*(d + e*x)^n] + 12*a*b^2*d^2*g*j^2*m*n*Log[d + e*x]*Log[c*(d + e*x)^n] + 36*b
^3*d^2*f*j^2*n^2*Log[d + e*x]*Log[c*(d + e*x)^n] - 12*b^3*d*e*g*i*j*m*n^2*Log[d + e*x]*Log[c*(d + e*x)^n] - 48
*b^3*d^2*g*j^2*m*n^2*Log[d + e*x]*Log[c*(d + e*x)^n] + 12*b^3*d^2*f*j^2*n^2*Log[d + e*x]^2*Log[c*(d + e*x)^n]
- 12*b^3*d*e*g*i*j*m*n^2*Log[d + e*x]^2*Log[c*(d + e*x)^n] - 6*b^3*d^2*g*j^2*m*n^2*Log[d + e*x]^2*Log[c*(d + e
*x)^n] - 12*b^3*d*e*g*i*j*m*n*Log[c*(d + e*x)^n]^2 + 12*a*b^2*e^2*g*i*j*m*x*Log[c*(d + e*x)^n]^2 + 12*b^3*d*e*
f*j^2*n*x*Log[c*(d + e*x)^n]^2 - 18*b^3*e^2*g*i*j*m*n*x*Log[c*(d + e*x)^n]^2 - 18*b^3*d*e*g*j^2*m*n*x*Log[c*(d
 + e*x)^n]^2 + 12*a*b^2*e^2*f*j^2*x^2*Log[c*(d + e*x)^n]^2 - 6*a*b^2*e^2*g*j^2*m*x^2*Log[c*(d + e*x)^n]^2 - 6*
b^3*e^2*f*j^2*n*x^2*Log[c*(d + e*x)^n]^2 + 6*b^3*e^2*g*j^2*m*n*x^2*Log[c*(d + e*x)^n]^2 - 12*b^3*d^2*f*j^2*n*L
og[d + e*x]*Log[c*(d + e*x)^n]^2 + 12*b^3*d*e*g*i*j*m*n*Log[d + e*x]*Log[c*(d + e*x)^n]^2 + 6*b^3*d^2*g*j^2*m*
n*Log[d + e*x]*Log[c*(d + e*x)^n]^2 + 4*b^3*e^2*g*i*j*m*x*Log[c*(d + e*x)^n]^3 + 4*b^3*e^2*f*j^2*x^2*Log[c*(d
+ e*x)^n]^3 - 2*b^3*e^2*g*j^2*m*x^2*Log[c*(d + e*x)^n]^3 - 4*a^3*e^2*g*i^2*m*Log[i + j*x] + 6*a^2*b*e^2*g*i^2*
m*n*Log[i + j*x] + 12*a^2*b*d*e*g*i*j*m*n*Log[i + j*x] - 6*a*b^2*e^2*g*i^2*m*n^2*Log[i + j*x] - 36*a*b^2*d*e*g
*i*j*m*n^2*Log[i + j*x] + 3*b^3*e^2*g*i^2*m*n^3*Log[i + j*x] + 42*b^3*d*e*g*i*j*m*n^3*Log[i + j*x] + 12*a^2*b*
e^2*g*i^2*m*n*Log[d + e*x]*Log[i + j*x] - 12*a*b^2*e^2*g*i^2*m*n^2*Log[d + e*x]*Log[i + j*x] - 24*a*b^2*d*e*g*
i*j*m*n^2*Log[d + e*x]*Log[i + j*x] + 6*b^3*e^2*g*i^2*m*n^3*Log[d + e*x]*Log[i + j*x] + 36*b^3*d*e*g*i*j*m*n^3
*Log[d + e*x]*Log[i + j*x] - 12*a*b^2*e^2*g*i^2*m*n^2*Log[d + e*x]^2*Log[i + j*x] + 6*b^3*e^2*g*i^2*m*n^3*Log[
d + e*x]^2*Log[i + j*x] + 12*b^3*d*e*g*i*j*m*n^3*Log[d + e*x]^2*Log[i + j*x] + 4*b^3*e^2*g*i^2*m*n^3*Log[d + e
*x]^3*Log[i + j*x] - 12*a^2*b*e^2*g*i^2*m*Log[c*(d + e*x)^n]*Log[i + j*x] + 12*a*b^2*e^2*g*i^2*m*n*Log[c*(d +
e*x)^n]*Log[i + j*x] + 24*a*b^2*d*e*g*i*j*m*n*Log[c*(d + e*x)^n]*Log[i + j*x] - 6*b^3*e^2*g*i^2*m*n^2*Log[c*(d
 + e*x)^n]*Log[i + j*x] - 36*b^3*d*e*g*i*j*m*n^2*Log[c*(d + e*x)^n]*Log[i + j*x] + 24*a*b^2*e^2*g*i^2*m*n*Log[
d + e*x]*Log[c*(d + e*x)^n]*Log[i + j*x] - 12*b^3*e^2*g*i^2*m*n^2*Log[d + e*x]*Log[c*(d + e*x)^n]*Log[i + j*x]
 - 24*b^3*d*e*g*i*j*m*n^2*Log[d + e*x]*Log[c*(d + e*x)^n]*Log[i + j*x] - 12*b^3*e^2*g*i^2*m*n^2*Log[d + e*x]^2
*Log[c*(d + e*x)^n]*Log[i + j*x] - 12*a*b^2*e^2*g*i^2*m*Log[c*(d + e*x)^n]^2*Log[i + j*x] + 6*b^3*e^2*g*i^2*m*
n*Log[c*(d + e*x)^n]^2*Log[i + j*x] + 12*b^3*d*e*g*i*j*m*n*Log[c*(d + e*x)^n]^2*Log[i + j*x] + 12*b^3*e^2*g*i^
2*m*n*Log[d + e*x]*Log[c*(d + e*x)^n]^2*Log[i + j*x] - 4*b^3*e^2*g*i^2*m*Log[c*(d + e*x)^n]^3*Log[i + j*x] - 1
2*a^2*b*e^2*g*i^2*m*n*Log[d + e*x]*Log[(e*(i + j*x))/(e*i - d*j)] + 12*a^2*b*d^2*g*j^2*m*n*Log[d + e*x]*Log[(e
*(i + j*x))/(e*i - d*j)] + 12*a*b^2*e^2*g*i^2*m*n^2*Log[d + e*x]*Log[(e*(i + j*x))/(e*i - d*j)] + 24*a*b^2*d*e
*g*i*j*m*n^2*Log[d + e*x]*Log[(e*(i + j*x))/(e*i - d*j)] - 36*a*b^2*d^2*g*j^2*m*n^2*Log[d + e*x]*Log[(e*(i + j
*x))/(e*i - d*j)] - 6*b^3*e^2*g*i^2*m*n^3*Log[d + e*x]*Log[(e*(i + j*x))/(e*i - d*j)] - 36*b^3*d*e*g*i*j*m*n^3
*Log[d + e*x]*Log[(e*(i + j*x))/(e*i - d*j)] + 42*b^3*d^2*g*j^2*m*n^3*Log[d + e*x]*Log[(e*(i + j*x))/(e*i - d*
j)] + 12*a*b^2*e^2*g*i^2*m*n^2*Log[d + e*x]^2*Log[(e*(i + j*x))/(e*i - d*j)] - 12*a*b^2*d^2*g*j^2*m*n^2*Log[d
+ e*x]^2*Log[(e*(i + j*x))/(e*i - d*j)] - 6*b^3*e^2*g*i^2*m*n^3*Log[d + e*x]^2*Log[(e*(i + j*x))/(e*i - d*j)]
- 12*b^3*d*e*g*i*j*m*n^3*Log[d + e*x]^2*Log[(e*(i + j*x))/(e*i - d*j)] + 18*b^3*d^2*g*j^2*m*n^3*Log[d + e*x]^2
*Log[(e*(i + j*x))/(e*i - d*j)] - 4*b^3*e^2*g*i^2*m*n^3*Log[d + e*x]^3*Log[(e*(i + j*x))/(e*i - d*j)] + 4*b^3*
d^2*g*j^2*m*n^3*Log[d + e*x]^3*Log[(e*(i + j*x))/(e*i - d*j)] - 24*a*b^2*e^2*g*i^2*m*n*Log[d + e*x]*Log[c*(d +
 e*x)^n]*Log[(e*(i + j*x))/(e*i - d*j)] + 24*a*b^2*d^2*g*j^2*m*n*Log[d + e*x]*Log[c*(d + e*x)^n]*Log[(e*(i + j
*x))/(e*i - d*j)] + 12*b^3*e^2*g*i^2*m*n^2*Log[d + e*x]*Log[c*(d + e*x)^n]*Log[(e*(i + j*x))/(e*i - d*j)] + 24
*b^3*d*e*g*i*j*m*n^2*Log[d + e*x]*Log[c*(d + e*x)^n]*Log[(e*(i + j*x))/(e*i - d*j)] - 36*b^3*d^2*g*j^2*m*n^2*L
og[d + e*x]*Log[c*(d + e*x)^n]*Log[(e*(i + j*x))/(e*i - d*j)] + 12*b^3*e^2*g*i^2*m*n^2*Log[d + e*x]^2*Log[c*(d
 + e*x)^n]*Log[(e*(i + j*x))/(e*i - d*j)] - 12*b^3*d^2*g*j^2*m*n^2*Log[d + e*x]^2*Log[c*(d + e*x)^n]*Log[(e*(i
 + j*x))/(e*i - d*j)] - 12*b^3*e^2*g*i^2*m*n*Log[d + e*x]*Log[c*(d + e*x)^n]^2*Log[(e*(i + j*x))/(e*i - d*j)]
+ 12*b^3*d^2*g*j^2*m*n*Log[d + e*x]*Log[c*(d + e*x)^n]^2*Log[(e*(i + j*x))/(e*i - d*j)] + 12*a^2*b*d*e*g*j^2*n
*x*Log[h*(i + j*x)^m] - 36*a*b^2*d*e*g*j^2*n^2*x*Log[h*(i + j*x)^m] + 42*b^3*d*e*g*j^2*n^3*x*Log[h*(i + j*x)^m
] + 4*a^3*e^2*g*j^2*x^2*Log[h*(i + j*x)^m] - 6*a^2*b*e^2*g*j^2*n*x^2*Log[h*(i + j*x)^m] + 6*a*b^2*e^2*g*j^2*n^
2*x^2*Log[h*(i + j*x)^m] - 3*b^3*e^2*g*j^2*n^3*x^2*Log[h*(i + j*x)^m] - 12*a^2*b*d^2*g*j^2*n*Log[d + e*x]*Log[
h*(i + j*x)^m] + 36*a*b^2*d^2*g*j^2*n^2*Log[d + e*x]*Log[h*(i + j*x)^m] - 42*b^3*d^2*g*j^2*n^3*Log[d + e*x]*Lo
g[h*(i + j*x)^m] + 12*a*b^2*d^2*g*j^2*n^2*Log[d + e*x]^2*Log[h*(i + j*x)^m] - 18*b^3*d^2*g*j^2*n^3*Log[d + e*x
]^2*Log[h*(i + j*x)^m] - 4*b^3*d^2*g*j^2*n^3*Log[d + e*x]^3*Log[h*(i + j*x)^m] + 24*a*b^2*d*e*g*j^2*n*x*Log[c*
(d + e*x)^n]*Log[h*(i + j*x)^m] - 36*b^3*d*e*g*j^2*n^2*x*Log[c*(d + e*x)^n]*Log[h*(i + j*x)^m] + 12*a^2*b*e^2*
g*j^2*x^2*Log[c*(d + e*x)^n]*Log[h*(i + j*x)^m] - 12*a*b^2*e^2*g*j^2*n*x^2*Log[c*(d + e*x)^n]*Log[h*(i + j*x)^
m] + 6*b^3*e^2*g*j^2*n^2*x^2*Log[c*(d + e*x)^n]*Log[h*(i + j*x)^m] - 24*a*b^2*d^2*g*j^2*n*Log[d + e*x]*Log[c*(
d + e*x)^n]*Log[h*(i + j*x)^m] + 36*b^3*d^2*g*j^2*n^2*Log[d + e*x]*Log[c*(d + e*x)^n]*Log[h*(i + j*x)^m] + 12*
b^3*d^2*g*j^2*n^2*Log[d + e*x]^2*Log[c*(d + e*x)^n]*Log[h*(i + j*x)^m] + 12*b^3*d*e*g*j^2*n*x*Log[c*(d + e*x)^
n]^2*Log[h*(i + j*x)^m] + 12*a*b^2*e^2*g*j^2*x^2*Log[c*(d + e*x)^n]^2*Log[h*(i + j*x)^m] - 6*b^3*e^2*g*j^2*n*x
^2*Log[c*(d + e*x)^n]^2*Log[h*(i + j*x)^m] - 12*b^3*d^2*g*j^2*n*Log[d + e*x]*Log[c*(d + e*x)^n]^2*Log[h*(i + j
*x)^m] + 4*b^3*e^2*g*j^2*x^2*Log[c*(d + e*x)^n]^3*Log[h*(i + j*x)^m] - 6*b*g*(e*i - d*j)*m*n*(2*a^2*(e*i + d*j
) - 2*a*b*(e*i + 3*d*j)*n + b^2*(e*i + 7*d*j)*n^2 - 2*b*(-2*a*(e*i + d*j) + b*(e*i + 3*d*j)*n)*Log[c*(d + e*x)
^n] + 2*b^2*(e*i + d*j)*Log[c*(d + e*x)^n]^2)*PolyLog[2, (j*(d + e*x))/(-(e*i) + d*j)] + 12*b^2*g*(e*i - d*j)*
m*n^2*(2*a*(e*i + d*j) - b*(e*i + 3*d*j)*n + 2*b*(e*i + d*j)*Log[c*(d + e*x)^n])*PolyLog[3, (j*(d + e*x))/(-(e
*i) + d*j)] - 24*b^3*e^2*g*i^2*m*n^3*PolyLog[4, (j*(d + e*x))/(-(e*i) + d*j)] + 24*b^3*d^2*g*j^2*m*n^3*PolyLog
[4, (j*(d + e*x))/(-(e*i) + d*j)])/(8*e^2*j^2)

________________________________________________________________________________________

Maple [F]  time = 2.901, size = 0, normalized size = 0. \begin{align*} \int x \left ( a+b\ln \left ( c \left ( ex+d \right ) ^{n} \right ) \right ) ^{3} \left ( f+g\ln \left ( h \left ( jx+i \right ) ^{m} \right ) \right ) \, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(a+b*ln(c*(e*x+d)^n))^3*(f+g*ln(h*(j*x+i)^m)),x)

[Out]

int(x*(a+b*ln(c*(e*x+d)^n))^3*(f+g*ln(h*(j*x+i)^m)),x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*log(c*(e*x+d)^n))^3*(f+g*log(h*(j*x+i)^m)),x, algorithm="maxima")

[Out]

1/2*b^3*f*x^2*log((e*x + d)^n*c)^3 + 3/2*a*b^2*f*x^2*log((e*x + d)^n*c)^2 - 3/4*a^2*b*e*f*n*(2*d^2*log(e*x + d
)/e^3 + (e*x^2 - 2*d*x)/e^2) - 1/4*a^3*g*j*m*(2*i^2*log(j*x + i)/j^3 + (j*x^2 - 2*i*x)/j^2) + 3/2*a^2*b*f*x^2*
log((e*x + d)^n*c) + 1/2*a^3*g*x^2*log((j*x + i)^m*h) + 1/2*a^3*f*x^2 - 3/4*(2*e*n*(2*d^2*log(e*x + d)/e^3 + (
e*x^2 - 2*d*x)/e^2)*log((e*x + d)^n*c) - (e^2*x^2 + 2*d^2*log(e*x + d)^2 - 6*d*e*x + 6*d^2*log(e*x + d))*n^2/e
^2)*a*b^2*f - 1/8*(6*e*n*(2*d^2*log(e*x + d)/e^3 + (e*x^2 - 2*d*x)/e^2)*log((e*x + d)^n*c)^2 + e*n*((4*d^2*log
(e*x + d)^3 + 3*e^2*x^2 + 18*d^2*log(e*x + d)^2 - 42*d*e*x + 42*d^2*log(e*x + d))*n^2/e^3 - 6*(e^2*x^2 + 2*d^2
*log(e*x + d)^2 - 6*d*e*x + 6*d^2*log(e*x + d))*n*log((e*x + d)^n*c)/e^3))*b^3*f + 1/8*(2*(2*b^3*e^2*g*i*j*m*x
 - 2*b^3*e^2*g*i^2*m*log(j*x + i) - (j^2*m - 2*j^2*log(h))*b^3*e^2*g*x^2)*log((e*x + d)^n)^3 - (4*b^3*d^2*g*j^
2*n^3*log(e*x + d)^3 - 4*b^3*e^2*g*j^2*x^2*log((e*x + d)^n)^3 + (6*(e^2*g*j^2*n - 2*e^2*g*j^2*log(c))*a^2*b -
6*(e^2*g*j^2*n^2 - 2*e^2*g*j^2*n*log(c) + 2*e^2*g*j^2*log(c)^2)*a*b^2 + (3*e^2*g*j^2*n^3 - 6*e^2*g*j^2*n^2*log
(c) + 6*e^2*g*j^2*n*log(c)^2 - 4*e^2*g*j^2*log(c)^3)*b^3)*x^2 - 6*(2*a*b^2*d^2*g*j^2*n^2 - (3*d^2*g*j^2*n^3 -
2*d^2*g*j^2*n^2*log(c))*b^3)*log(e*x + d)^2 - 6*(2*b^3*d*e*g*j^2*n*x - 2*b^3*d^2*g*j^2*n*log(e*x + d) + (2*a*b
^2*e^2*g*j^2 - (e^2*g*j^2*n - 2*e^2*g*j^2*log(c))*b^3)*x^2)*log((e*x + d)^n)^2 - 6*(2*a^2*b*d*e*g*j^2*n - 2*(3
*d*e*g*j^2*n^2 - 2*d*e*g*j^2*n*log(c))*a*b^2 + (7*d*e*g*j^2*n^3 - 6*d*e*g*j^2*n^2*log(c) + 2*d*e*g*j^2*n*log(c
)^2)*b^3)*x + 6*(2*a^2*b*d^2*g*j^2*n - 2*(3*d^2*g*j^2*n^2 - 2*d^2*g*j^2*n*log(c))*a*b^2 + (7*d^2*g*j^2*n^3 - 6
*d^2*g*j^2*n^2*log(c) + 2*d^2*g*j^2*n*log(c)^2)*b^3)*log(e*x + d) - 6*(2*b^3*d^2*g*j^2*n^2*log(e*x + d)^2 + (2
*a^2*b*e^2*g*j^2 - 2*(e^2*g*j^2*n - 2*e^2*g*j^2*log(c))*a*b^2 + (e^2*g*j^2*n^2 - 2*e^2*g*j^2*n*log(c) + 2*e^2*
g*j^2*log(c)^2)*b^3)*x^2 + 2*(2*a*b^2*d*e*g*j^2*n - (3*d*e*g*j^2*n^2 - 2*d*e*g*j^2*n*log(c))*b^3)*x - 2*(2*a*b
^2*d^2*g*j^2*n - (3*d^2*g*j^2*n^2 - 2*d^2*g*j^2*n*log(c))*b^3)*log(e*x + d))*log((e*x + d)^n))*log((j*x + i)^m
))/(e^2*j^2) + integrate(1/8*((6*(e^3*g*j^3*m*n - 2*(j^3*m - 2*j^3*log(h))*e^3*g*log(c))*a^2*b - 6*(e^3*g*j^3*
m*n^2 - 2*e^3*g*j^3*m*n*log(c) + 2*(j^3*m - 2*j^3*log(h))*e^3*g*log(c)^2)*a*b^2 + (3*e^3*g*j^3*m*n^3 - 6*e^3*g
*j^3*m*n^2*log(c) + 6*e^3*g*j^3*m*n*log(c)^2 - 4*(j^3*m - 2*j^3*log(h))*e^3*g*log(c)^3)*b^3)*x^3 + 4*(b^3*d^2*
e*g*j^3*m*n^3*x + b^3*d^3*g*j^3*m*n^3)*log(e*x + d)^3 - (6*(d*e^2*g*j^3*m*n - 2*(2*e^3*g*i*j^2*log(h) - (j^3*m
 - 2*j^3*log(h))*d*e^2*g)*log(c))*a^2*b - 6*(5*d*e^2*g*j^3*m*n^2 - 2*d*e^2*g*j^3*m*n*log(c) + 2*(2*e^3*g*i*j^2
*log(h) - (j^3*m - 2*j^3*log(h))*d*e^2*g)*log(c)^2)*a*b^2 + (39*d*e^2*g*j^3*m*n^3 - 30*d*e^2*g*j^3*m*n^2*log(c
) + 6*d*e^2*g*j^3*m*n*log(c)^2 - 4*(2*e^3*g*i*j^2*log(h) - (j^3*m - 2*j^3*log(h))*d*e^2*g)*log(c)^3)*b^3)*x^2
- 6*(2*a*b^2*d^3*g*j^3*m*n^2 - (3*d^3*g*j^3*m*n^3 - 2*d^3*g*j^3*m*n^2*log(c))*b^3 + (2*a*b^2*d^2*e*g*j^3*m*n^2
 - (3*d^2*e*g*j^3*m*n^3 - 2*d^2*e*g*j^3*m*n^2*log(c))*b^3)*x)*log(e*x + d)^2 - 6*(2*((j^3*m - 2*j^3*log(h))*a*
b^2*e^3*g + ((j^3*m - 2*j^3*log(h))*e^3*g*log(c) - (j^3*m*n - j^3*n*log(h))*e^3*g)*b^3)*x^3 - (2*(2*e^3*g*i*j^
2*log(h) - (j^3*m - 2*j^3*log(h))*d*e^2*g)*a*b^2 - (d*e^2*g*j^3*m*n + (i*j^2*m*n + 2*i*j^2*n*log(h))*e^3*g - 2
*(2*e^3*g*i*j^2*log(h) - (j^3*m - 2*j^3*log(h))*d*e^2*g)*log(c))*b^3)*x^2 - 2*(2*a*b^2*d*e^2*g*i*j^2*log(h) -
(e^3*g*i^2*j*m*n + d^2*e*g*j^3*m*n - 2*d*e^2*g*i*j^2*log(c)*log(h))*b^3)*x - 2*(b^3*d^2*e*g*j^3*m*n*x + b^3*d^
3*g*j^3*m*n)*log(e*x + d) - 2*(b^3*e^3*g*i^2*j*m*n*x + b^3*e^3*g*i^3*m*n)*log(j*x + i))*log((e*x + d)^n)^2 - 2
*(6*(d^2*e*g*j^3*m*n - 2*d*e^2*g*i*j^2*log(c)*log(h))*a^2*b - 6*(3*d^2*e*g*j^3*m*n^2 - 2*d^2*e*g*j^3*m*n*log(c
) + 2*d*e^2*g*i*j^2*log(c)^2*log(h))*a*b^2 + (21*d^2*e*g*j^3*m*n^3 - 18*d^2*e*g*j^3*m*n^2*log(c) + 6*d^2*e*g*j
^3*m*n*log(c)^2 - 4*d*e^2*g*i*j^2*log(c)^3*log(h))*b^3)*x + 6*(2*a^2*b*d^3*g*j^3*m*n - 2*(3*d^3*g*j^3*m*n^2 -
2*d^3*g*j^3*m*n*log(c))*a*b^2 + (7*d^3*g*j^3*m*n^3 - 6*d^3*g*j^3*m*n^2*log(c) + 2*d^3*g*j^3*m*n*log(c)^2)*b^3
+ (2*a^2*b*d^2*e*g*j^3*m*n - 2*(3*d^2*e*g*j^3*m*n^2 - 2*d^2*e*g*j^3*m*n*log(c))*a*b^2 + (7*d^2*e*g*j^3*m*n^3 -
 6*d^2*e*g*j^3*m*n^2*log(c) + 2*d^2*e*g*j^3*m*n*log(c)^2)*b^3)*x)*log(e*x + d) - 6*((2*(j^3*m - 2*j^3*log(h))*
a^2*b*e^3*g - 2*(e^3*g*j^3*m*n - 2*(j^3*m - 2*j^3*log(h))*e^3*g*log(c))*a*b^2 + (e^3*g*j^3*m*n^2 - 2*e^3*g*j^3
*m*n*log(c) + 2*(j^3*m - 2*j^3*log(h))*e^3*g*log(c)^2)*b^3)*x^3 - (2*(2*e^3*g*i*j^2*log(h) - (j^3*m - 2*j^3*lo
g(h))*d*e^2*g)*a^2*b - 2*(d*e^2*g*j^3*m*n - 2*(2*e^3*g*i*j^2*log(h) - (j^3*m - 2*j^3*log(h))*d*e^2*g)*log(c))*
a*b^2 + (5*d*e^2*g*j^3*m*n^2 - 2*d*e^2*g*j^3*m*n*log(c) + 2*(2*e^3*g*i*j^2*log(h) - (j^3*m - 2*j^3*log(h))*d*e
^2*g)*log(c)^2)*b^3)*x^2 + 2*(b^3*d^2*e*g*j^3*m*n^2*x + b^3*d^3*g*j^3*m*n^2)*log(e*x + d)^2 - 2*(2*a^2*b*d*e^2
*g*i*j^2*log(h) - 2*(d^2*e*g*j^3*m*n - 2*d*e^2*g*i*j^2*log(c)*log(h))*a*b^2 + (3*d^2*e*g*j^3*m*n^2 - 2*d^2*e*g
*j^3*m*n*log(c) + 2*d*e^2*g*i*j^2*log(c)^2*log(h))*b^3)*x - 2*(2*a*b^2*d^3*g*j^3*m*n - (3*d^3*g*j^3*m*n^2 - 2*
d^3*g*j^3*m*n*log(c))*b^3 + (2*a*b^2*d^2*e*g*j^3*m*n - (3*d^2*e*g*j^3*m*n^2 - 2*d^2*e*g*j^3*m*n*log(c))*b^3)*x
)*log(e*x + d))*log((e*x + d)^n))/(e^3*j^3*x^2 + d*e^2*i*j^2 + (e^3*i*j^2 + d*e^2*j^3)*x), x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (b^{3} f x \log \left ({\left (e x + d\right )}^{n} c\right )^{3} + 3 \, a b^{2} f x \log \left ({\left (e x + d\right )}^{n} c\right )^{2} + 3 \, a^{2} b f x \log \left ({\left (e x + d\right )}^{n} c\right ) + a^{3} f x +{\left (b^{3} g x \log \left ({\left (e x + d\right )}^{n} c\right )^{3} + 3 \, a b^{2} g x \log \left ({\left (e x + d\right )}^{n} c\right )^{2} + 3 \, a^{2} b g x \log \left ({\left (e x + d\right )}^{n} c\right ) + a^{3} g x\right )} \log \left ({\left (j x + i\right )}^{m} h\right ), x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*log(c*(e*x+d)^n))^3*(f+g*log(h*(j*x+i)^m)),x, algorithm="fricas")

[Out]

integral(b^3*f*x*log((e*x + d)^n*c)^3 + 3*a*b^2*f*x*log((e*x + d)^n*c)^2 + 3*a^2*b*f*x*log((e*x + d)^n*c) + a^
3*f*x + (b^3*g*x*log((e*x + d)^n*c)^3 + 3*a*b^2*g*x*log((e*x + d)^n*c)^2 + 3*a^2*b*g*x*log((e*x + d)^n*c) + a^
3*g*x)*log((j*x + i)^m*h), x)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*ln(c*(e*x+d)**n))**3*(f+g*ln(h*(j*x+i)**m)),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}^{3}{\left (g \log \left ({\left (j x + i\right )}^{m} h\right ) + f\right )} x\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*log(c*(e*x+d)^n))^3*(f+g*log(h*(j*x+i)^m)),x, algorithm="giac")

[Out]

integrate((b*log((e*x + d)^n*c) + a)^3*(g*log((j*x + i)^m*h) + f)*x, x)